home *** CD-ROM | disk | FTP | other *** search
- Path: news.mitre.org!usenet
- From: Chris Irwin <cirwin@mitretek.org>
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: socket problem ...
- Date: Thu, 21 Mar 1996 11:19:48 -0500
- Organization: Mitretek Systems
- Message-ID: <315181A4.7266@mitretek.org>
- NNTP-Posting-Host: m23266-pc.mitre.org
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
-
- I have a server daemon process that is leaving the socket bound upon
- exiting. It is actually a C++ program using the socket++-1.10 class
- library but uses the usual socket library calls. When I kill the server
- and try to restart it, it seems that the port is still in use. Basically
- the server does a fork() after the accept(). THe parent process closes
- the new socket and the child process closes the original socket does its
- thing and then exit() s. Any help would be greatly appreciated.
-
- Thanks in advance
- --
- Christopher S. Irwin
- Information Systems Directorate Email: cirwin@mitretek.org
- Mitretek Systems Phone: (703)610-1920
- 7525 Colshire Drive
- McLean, Virginia 22102-3481
-